<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<tr></tr>
		<table>
			<table border="1" width="100%" onclick=Getrow(this)>
			<tr>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
			</tr>
			<tr>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
			</tr>
			<tr>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
			</tr>
			<tr>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
			</tr>
			<tr>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
			</tr>
			<tr>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
				<td width="20%">　</td>
			</tr>
		</table>
	<script type="text/javascript">
		var rows=document.getElementsByTagName("tr");
		for(var i=0;i<rows.length;i++){
			rows[i].onclick=(function(){
				var rid=i+1;
				return function(){
					alert("第"+rid+"行");
				}
			})();
		}
	</script>
	</body>
</html>
